package com.mftour.moudles.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mftour.moudles.entity.Role;
import com.mftour.moudles.mapper.RoleMapper;
import com.mftour.moudles.service.RoleService;
import com.mftour.moudles.vo.RoleSearchPagingVo;

@Service
public class RoleServiceImpl extends BaseServiceImpl<Role,Integer> implements RoleService {
	
	@Autowired
	RoleMapper roleMapper;
    
    @Override
    public List<Role> selectRoleListSelectivePaging(RoleSearchPagingVo record) {
        List<Role> records = roleMapper.selectListSelectivePaging(record);
        return records;
    }
    
    @Override
    public List<Role> selectRolesByUserId(Integer userId) {
    	List<Role> records =roleMapper.selectRolesByUserId(userId);
    	return records;
    }
}